class_name = "CShip"
object_name = "Torpedo Boat type S-38"
detail_type = "DET_SHIP" //list of types is in \inc\SimulationSystem\DetailTypes.inc

//////	PhysicsBody properties
//VisualImage = <int TYPE>,<string File_PathName>,<bool cast_shadows>

VisualImage=0,"graphics/ships/TorpBoatS38/TorpBoatS38.mgm",true
DistantLOD="LuaScripts/WorldObjects/Ships/DistantLODs/TorpBoatS38_Distant.txt"
DLODArgs=63221,63222

ImageAttrs="IA_NOMINPIXELS","IA_NOMINZ","IA_NOCLIP_ANIM","IA_NOCLIP","IA_ALWAYSVISIBLE"
//	IA_DEFAULT=0,
//	IA_NOCLIP=1,
//	IA_NOCLIP_ANIM=2,
//	IA_NOROTINTERPOLATION=4,
//	IA_NOMINZ=8,
//	IA_NOMINPIXELS=16,
//	IA_NOPOSINTERPOLATION=32,
//	IA_CLOSEVIEWARG=64,
//	IA_ALWAYSVISIBLE=128,
//	IA_SCALEARG=256,
//	ImageAttr=Attr1+Attr2+...+AttrN

CollisionBody="graphics/ships/TorpBoatS38/TorpBoatS38.col"

SoundScript="LuaScripts/Sound/Vehicles/TorpBoatS38.cfg"

[attach=0]
	position= 13.275, 1.81, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/TorpBoatS38-flak30.txt"
[end]

[attach=1]
	position= -9.602, 1.547, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/LandBoatA-MGC30.txt"
	rotation= 0, 170, 0
[end]

[attach=2]
	position= 8.0, 2.249, -2.091
	rotation= 0, 0, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/TorpBoatS38-TorpedoTurret-L.txt"
[end]

[attach=3]
	position= 8.0, 2.249, 2.091
	rotation= 0, 0, 0
	object = "LuaScripts/WorldObjects/Ships/Turrets/TorpBoatS38-TorpedoTurret-R.txt"
[end]

[attach=4]
	position= 1.24, 1.64, 0
	object = "LuaScripts/WorldObjects/Bots/BotShipper.txt"
[end]

[attach=5]
	position= 5.023,4.329,2.086
	rotation= 30, 0, 0
	object = "LuaScripts/WorldObjects/FlareGun.txt"
[end]

AttachedCameras = "LuaScripts\WorldObjects\fixcameras\Vehicles\TorpBoatS38.txt"

CommandMonitor="LuaScripts/WorldObjects/VehicleMonitor.txt"


// 
logtreshold=0.0001
MaxDeleteTime = 600

length = 34.8
height = 1.38
width  = 6.0

TotalPoints = 6

point0 = 9.3, 0, -1.8, 32, 0.8, 0.3
point1 = 9.3, 0, 1.8, 32, 0.8, 0.1
point2 = 0, 0, -2.7, 32, 0.8, 0.3
point3 = 0, 0, 2.7, 32, 0.8, 0.1
point4 = -9.3, 0, -2.6, 32, 0.8, 0.1
point5 = -9.3, 0, 2.6, 32, 0.8, 0.3

//  .  ,   3D .
MaxWaveTime = 6		// 
WavePointSize = 1.5	// 
MaxWave = 30000		//  

Cx = 5000.0					//   .     Y
Cw = 200.0					//     

sendrate = 10				//    50     (=20    2.5)

mass = 100000.0
MaxEngineForce = 73500.0
MinEngineForce = 100
Csf=1.5
PrioritySpeed=25.7
MaxPropRotationRPM=240.0	//   (/)    
PropRotationSmoothK=0.01	//     
TurnShift=0.5				//        
RudderAngle=40				//    
Cwx=15						//     , ,  Cw   
Cwz=20000					//     , ,  Cwx*20   
Cang=1.0					//  
RudderPos=-16.4,-1.2,0		//     (  )
FrictionPos=0,-2,0			//     
GlidingK = 6				//       X    ().   - 0
GlidingPosK = 0.3			//    . 1 -  , 0 -  .

// Damage model

energyloss="",true,3.0,1000		//     , true -       -,       ,        

Armor=3			//  ,  

LifeRate=100000
LifeRateFrag=100000

EngineExhaustArg = 63200
BackTrailArg = 63222
FrontTrailArg = 63221
PropSprayArg=63233

[splash]
	pos = 16.422, 0.0, 0
	splashArg = 63224
	SplashTotalTime = 1.0
	SplashAttackTime = 0.1
	SplashKoeff = 30
	startArgValue = 0.5
	
	splashDiffHeight = 2.0
	// time = splashStackCount * splashstacktime
	splashStackCount = 50
	splashstacktime = 0.1
[end]

floathook=16.416, 0.3, 0,	100,false	//x,y,z, Arg, 3D water,      
floathook=-17.3,  0.3, 0,	101,false	//     
floathook=16.422, 0.3, 0,	102,true	//     
floathook=-17.3,  0.3, 0,	103,true	//      

OneSectionMode = true
SectionsHealthPercent = 1.0f

CommandSectionId = 3

MinMovementHealth = 0.3

SinkEffectScript = "LuaScripts/WorldObjects/explosions/Effects/SinkPTBoat.txt"

[section=0]
	Armor=3			//  ,  

	LifeRate=100000
	LifeRateFrag=100000

	ConvexName = "collision_1"

	// effect
	EffectCoord = 8.79, 0.78, -1.77
	ExplosionScript = "LuaScripts/WorldObjects/explosions/Detonation/ShipSmall.txt"

	DestructArg = 761
	FiringArg = 63210
	SmokeArgBase = 63210
	SmokeArgTotalNum = 1
	SmokeStartHealth = 0.5			// ,    
	FireEffectTime = 100.0			//     

	RegenerationMax = 0.49			//   Life -
	RegenerationMin = 0.2			//   Life,     
	RegenerationPercent = 0			//  ,  Life  
	Firing=0.0008					//     ,  Life  

	MinMovementHealth = 0.25		// ,    
	MinAttackHealth = 0.1			// ,    

	CollisionLifeRate = 200000		//   ,   ,    .     \Ships\1124.txt.   5  .
	CollisionMinImpulse = 4000		//      (0.02 of CollisionLifeRate).
	AlwaysColDamage=false			// True -      

	pointsTotal= 1
	point0 = 0
[end]

[section=1]
	Armor=3			//  ,  

	LifeRate=100000
	LifeRateFrag=100000

	ConvexName = "collision_2"

	// effect
	EffectCoord = -1.46, 1.30, -2.33
	ExplosionScript = "LuaScripts/WorldObjects/explosions/Detonation/ShipSmall.txt"

	DestructArg = 771
	FiringArg = 63211
	SmokeArgBase = 63211
	SmokeArgTotalNum = 1
	SmokeStartHealth = 0.5			// ,    
	FireEffectTime = 100.0			//     

	RegenerationMax = 0.49			//   Life -
	RegenerationMin = 0.2			//   Life,     
	RegenerationPercent = 0			//  ,  Life  
	Firing=0.0008					//     ,  Life  

	MinMovementHealth = 0.25		// ,    
	MinAttackHealth = 0.1			// ,    

	CollisionLifeRate = 200000		//   ,   ,    .     \Ships\1124.txt.   5  .
	CollisionMinImpulse = 4000		//      (0.02 of CollisionLifeRate).
	AlwaysColDamage=false			// True -      

	pointsTotal= 1
	point0 = 2
[end]

[section=2]
	Armor=3			//  ,  

	LifeRate=100000
	LifeRateFrag=100000

	ConvexName = "collision_3"

	// effect
	EffectCoord = -14.30, 0.95, -1.75
	ExplosionScript = "LuaScripts/WorldObjects/explosions/Detonation/ShipSmall.txt"

	DestructArg = 781
	FiringArg = 63212
	SmokeArgBase = 63212
	SmokeArgTotalNum = 1
	SmokeStartHealth = 0.5			// ,    
	FireEffectTime = 100.0			//     

	RegenerationMax = 0.49			//   Life -
	RegenerationMin = 0.2			//   Life,     
	RegenerationPercent = 0			//  ,  Life  
	Firing=0.0008					//     ,  Life  

	MinMovementHealth = 0.25		// ,    
	MinAttackHealth = 0.1			// ,    

	CollisionLifeRate = 200000		//   ,   ,    .     \Ships\1124.txt.   5  .
	CollisionMinImpulse = 4000		//      (0.02 of CollisionLifeRate).
	AlwaysColDamage=false			// True -      

	pointsTotal= 1
	point0 = 5

[end]

[section=3]
	Armor=3			//  ,  

	LifeRate=50000 
	LifeRateFrag=50000

	InfluenceOnTotalHealth = false

	ConvexName = "collision_4"

	// effect
	EffectCoord = 4.75, 3.99, 0.23
	ExplosionScript = "LuaScripts/WorldObjects/explosions/Detonation/VehicleNoDmg.txt"

	DestructArg = 901
	FiringArg = 63213
	SmokeArgBase = 63213
	SmokeArgTotalNum = 1
	SmokeStartHealth = 0.5			// ,    
	FireEffectTime = 100.0			//     

	RegenerationMax = 0.49			//   Life -
	RegenerationMin = 0.2			//   Life,     
	RegenerationPercent = 0			//  ,  Life  
	Firing=0.0008					//     ,  Life  

	CollisionLifeRate = 40000		//   ,   ,    .     \Ships\1124.txt.   5  .
	CollisionMinImpulse = 800		//      (0.02 of CollisionLifeRate).
	AlwaysColDamage=false			// True -      
[end]

DebugInfo = false